hysop.backend.device.opencl.opencl_buffer module¶
- class hysop.backend.device.opencl.opencl_buffer.OpenClBuffer(self: pyopencl._cl.Buffer, context: pyopencl._cl.Context, flags: int, size: int = 0, hostbuf: object = None)[source]¶
Bases:
DeviceBuffer
,Buffer
OpenCL buffer object. Simple wrapper of a pyopencl.Buffer.
- class hysop.backend.device.opencl.opencl_buffer.OpenClPooledBuffer(*args, **kwds)[source]¶
Bases:
PooledBuffer
,MemoryObjectHolder
Create a memory pool wrapped buffer. Input buffer buf was allocated by given pool with real size alloc_sz. Buffer is resized and aligned to given size and alignment. On destruction, buffer will be given back to the pool.
- property ptr¶